import java.io.*;

public abstract class cj
{

    public int m;
    public long n;
    public int o;

    public cj()
    {
        m = 0;
        n = 0L;
        o = 1;
    }

    public abstract int a();

    public void a(DataOutput dataoutput, ax ax1) throws IOException {
        if(o != 1)
        {
            ax1.writeByte((byte)o);
            ax1.a(dataoutput, 0);
        }
        if(n > 0L)
        {
            ax1.writeInt((int)(n / 1000L));
            ax1.a(dataoutput, 1);
        }
        if(m > 0)
        {
            ax1.writeInt(m);
            ax1.a(dataoutput, 23);
        }
    }

    public void a(DataInput datainput, int i, int j) throws IOException {
        if(i == 0)
        {
            o = datainput.readByte();
            return;
        }
        if(i == 1)
        {
            n = (long)datainput.readInt() * 1000L;
            return;
        }
        if(i == 23)
        {
            m = datainput.readInt();
            return;
        }
        if(j > 0 && datainput.skipBytes(j) != j)
            throw new EOFException();
        else
            return;
    }
}